lib: Add a helper for mmap->bytes with openat(), use it in repo
authorColin Walters <walters@verbum.org>
Fri, 3 Jun 2016 15:00:10 +0000 (11:00 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 9 Jun 2016 14:39:09 +0000 (14:39 +0000)
commit70e548925809f3727e9e6ecff32a9cdf5bdb7185
tree4874249db32713b884b8047b671c0e4ac19e7c85
parent3a03a35071f9ac56de2345f5f496c662e04d8029
lib: Add a helper for mmap->bytes with openat(), use it in repo

This kills another GSystem consumer...I think down the line I'd like
to do something like "detect whether file is > 1k if so, mmap,
otherwise just readall()" so we can use this helper in more places.

Closes: #319
Approved by: jlebon
src/libostree/ostree-repo.c
src/libotutil/ot-fs-utils.c
src/libotutil/ot-fs-utils.h